package com.qidian.mes.sys;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author 戴着假发的程序员
 * @Company 起点编程
 * @Description
 * @Time 2024/4/2 10:40
 */
@SpringBootApplication
@MapperScan("com.qidian.mes.sys.mapper")
@EnableTransactionManagement
@EnableAspectJAutoProxy(exposeProxy = true)// 将当前的代理对象暴露在当前的环境中
public class SysApplication {
    public static void main(String[] args) {
        ApplicationContext context =  SpringApplication.run(SysApplication.class,args);
        System.out.println("启动成功" + context);
    }

}
